from flask  import Flask,url_for,request

app = Flask(__name__)

@app.route('/')
def IndexPage():
    # print(url_for('my_list',page=1,count=2))
    # return '欢迎来到我的博客首页.'
    # return url_for('my_list',page=1,count=2)
    return url_for('login',next='/')

@app.route('/login/')
def login():
    request.args.get('next')
    return 'login'

@app.route('/post/list/<page>/')
def my_list(page):
    return 'my list'

@app.route('/post/detail/<id>/')
def detail():
    return 'detail'

if __name__ == "__main__":
    app.run(debug=True)
